package com.yunche.yunchebusiness.mvp.contract

import com.yunche.yunchebusiness.base.mvp.IBasePresenter
import com.yunche.yunchebusiness.base.mvp.IBaseView
import com.yunche.yunchebusiness.entity.AreaEntity
import com.yunche.yunchebusiness.entity.ColorEntity
import com.yunche.yunchebusiness.entity.EvaluateEntity
import okhttp3.RequestBody

/**
 * Create by Crcker on 2019/1/2 16:55
 * Email: Crcker@163.com
 */


class EvaluateContract {

    abstract interface View : IBaseView {
        fun getColorSuccess(colorEntity: ColorEntity)
        fun getEvaluateSuccess(evaluateEntity: EvaluateEntity)
        fun getAreaSuccess(areas: List<AreaEntity>)
        fun saveEvaluateSuccess()
    }


    interface Presenter : IBasePresenter<View> {
        fun getEvaluate(requestBody: RequestBody)
        fun getColor(modelId: String)
        fun getArea()
        fun saveEvaluate(requestBody: RequestBody)
    }
}